import React, { Component } from 'react';
import './index.css'

class Item extends Component {
  render() {
    const {html_url, avatar_url, login} = this.props
    return (
      <div className='card'>
        <a href={html_url}>
          <img src={avatar_url} alt="photograph" style={{width:'100px'}}/>
        </a>
        <p className='card-text'> {login}</p>
      </div>
    );
  }
}

export default Item;